<?php
/**
 * Ressource Skills - Interface
 *
 * @author Xavier VILAIN
 * @package Hive\Contact
 */
use Fox\Html\DropList;
use Fox\Html\Input;
use Fox\Html\Block;
use Fox\Html\Screen;
use Fox\Generator;
use Fox\Html\Button;
use Fox\Html\Header\Content;
$contact = Xview::instance()->component('ressource', 'object');

// Customizing
$customizing = Hive\Ressource\Customizing::instance();
$customizing->trackSummaryPage(array('mod' => 'ressource','act'=>'skills'));
/* @var $ressource Hive\Ressource */
$title = new Content('skills',Msg(Hive::BUNDLE,Hive::MISSION_SKILLS_BLOCK));
$skillsList = null;

$screen = new Screen('sSkills');
$block = new Block('bSkills');
$block->noLegend();

foreach($contact->skills() as $skill)
{
	$id = $skill->skillid;
	$block->add(new Input(array('skill','skill_'.$id)))
			->label('');
	$block->add(new DropList(array('skill_level','level_'.$id),false,true),2,'skill_'.$id)
			->label('');
}
?>
<?php echo $title->render();?>
<div class="contentArea">
	<div>
		<?php echo $screen->render();?>
	</div>
	<div class="addSkillLine">
		<a id="addSkill" href="javascript:void(0)" ><?php echo Msg(Hive::BUNDLE,Hive::SKILL_ADD_A_NEW)?></a>
	</div>
</div>